package com.woniu.product.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠券消费记录表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_coupon_logs")
public class CouponLogs implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 记录ID
     */
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    /**
     * 买家ID
     */
    private Integer buyerId;

    /**
     * 优惠券id
     */
    private Integer couponReceiveId;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 原订单金额
     */
    private BigDecimal orderOriginalAmount;

    /**
     * 优惠券的金额
     */
    private BigDecimal couponAmount;

    /**
     * 抵扣优惠券之后的订单金额
     */
    private BigDecimal orderFinalAmount;

    /**
     * 领取时间
     */
    private Date createTime;

    /**
     * 日志状态: 默认为0，支付回调成功后为1
     */
    private Integer status;

}
